package com.ptu.spzx.domain.Knowledge;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author YT
 * @since 2024-01-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class KnowledgePoint implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 知识点编号
     */
    @TableId(value = "konwledge_id", type = IdType.AUTO)
    private Long konwledgeId;

    /**
     * 所属课程编号
     */
    private Integer belongCourseId;

    /**
     * 知识点名称
     */
    private String knowledgeName;

    /**
     * 知识点描述
     */
    private String knowledgeDescription;

    /**
     * 知识点使用情况
     */
    private Integer konwledgeUsed;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @JsonIgnore
    @TableLogic
    private Boolean isDelete;


}
